home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.04 Apr 95 / TreeAppƒ / Eric's C++ Libraries / Interface Classes / CPPWindowManager.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  905 b   |  37 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/21/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPWindowManager
  6.     
  7.     SUPERCLASS: CPPObject
  8.     
  9.         This C++ class keeps track of the windows our application uses
  10.     
  11. ********************************************************************/
  12.  
  13. #pragma once
  14.  
  15. #include <CPPObjectList.h>
  16. #include <CPPWindow.h>
  17.  
  18. class CPPWindowManager : public CPPObjectList {
  19. public:
  20.             CPPWindowManager(void);
  21.             ~CPPWindowManager(void);
  22.                     
  23.     virtual    Boolean    Member (char *className);
  24.     virtual    char     *ClassName (void);
  25.     
  26.     CPPWindow    *FrontWindowObject (void);
  27.     CPPWindow    *FindWindowObject (WindowPtr theWindow);
  28.     
  29.     void        ActivateWindowObject (CPPWindow *theWindow);
  30.     void        DeactivateWindowObject (CPPWindow *theWindow);
  31.     
  32.     void        StartManagingWindow (CPPWindow *theWindow);
  33.     void        StopManagingWindow (CPPWindow *theWindow);
  34.  
  35. private:
  36.     CPPWindow    *frontWindowObject;
  37. };